package service.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImplMoke implements CustomerManager {
	private List<Customer> list = new ArrayList<>();
	
	public CustomerManagerImplMoke() {
		Customer c = new Customer(0, "tom", 3325.4, true, new Date());
		list.add(c);
	}

	@Override
	public int addCustomer(Customer customer) {
		list.add(customer);
		return 1;
	}

	@Override
	public List<Customer> findAllCustomers() {
		// TODO Auto-generated method stub
		return list;
	}

	@Override
	public int deleteCustomer(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateCustomer(Customer customer) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Customer loadCustomer(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

}
